package cn.ljy.authority.web.controller.backstage.system.daily;


import cn.ljy.authority.model.SysDailyType;
import cn.ljy.authority.model.query.SysDailyTypeQuery;
import cn.ljy.authority.service.SysDictService;
import cn.ljy.authority.web.controller.backstage.BaseBackstageController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台日志类别管理模块")
@RestController
@RequestMapping(value = "/backstage/system/dailyType")
public class SysDailyTypeController extends BaseBackstageController<SysDailyType, SysDailyTypeQuery,Long> {

    @Autowired
    private SysDictService sysDictService;

    @Override
    protected String getAuthorityPrefix() {
        return "sys:dailyType"; // 定义模块权限前缀
    }

//    @GetMapping("/all")
//    @Override
//    protected ResponseData query(SysDailyTypeQuery query) {
//        return super.query(query);
//    }
//
//    @ApiOperation(value = "分页查询日志类别")
//    @PreAuthorize("hasAuthority('sys:dailyType:query')")
//    @Override
//    protected ResponseData query(Integer page, Integer pageSize, SysDailyTypeQuery query) {
//        return super.query(page, pageSize, query);
//    }
//
//    @ApiOperation(value = "批量删除指定的多个日志类别")
//    @PreAuthorize("hasAuthority('sys:dailyType:del')")
//    @Override
//    public ResponseData deletes(@NotEmpty(message="请选择要移除的记录")Long[] ids){
//        return super.deletes(ids);
//    }
//
//    @ApiOperation(value = "编辑日志类别")
//    @PreAuthorize("hasAuthority('sys:dailyType:edit')")
//    @Override
//    public ResponseData edit(@Validated({UpdateWorkValidation.class}) @RequestBody SysDailyType sysDailyType){
//        return super.edit(sysDailyType);
//    }
//
//    @ApiOperation(value = "添加日志类别")
//    @PreAuthorize("hasAuthority('sys:dailyType:add')")
//    @Override
//    protected ResponseData add(@Validated({AddWorkValidation.class}) @RequestBody SysDailyType sysDailyType) {
//       return super.add(sysDailyType);
//    }


    //=========================扩展部分=============================================//
}
